using System;
using GTA;
using MotionFramework;
using MotionFramework.Audio;
using SevenPieceGame;
using UnityEngine;

public class EmptyScene : MonoBehaviour
{
	private void Start()
	{
		Init();
		Handheld.StartActivityIndicator();
		Application.LoadLevelAsync("Loading");
	}
	
	private void Init()
	{
		AdWrapper.Instance.Init();
		ADSHelper.Instance.Init();
		AdjustWrapper.Instance.Init();
		
		ConfigManager.Instance.Init();
		MainManager.Instance.InitIapMgr();
		//MainManager.Instance.ShowNotiveStr();
		// 创建音频管理器
		MotionEngine.CreateModule<AudioManager>();
		MainManager.Instance.m_RewardCMTime = 0;
		MainManager.Instance.m_LastShowInterstitialAdTime = 0;
		//对原有数据进行改造
		Data.Root _rootData = DataContainer<Data.Root>.Data;
		for (int i = 0; i < _rootData.packages.Length; i++)
		{
			if (_rootData.packages[i].iap != null)
			{
				_rootData.packages[i].iap = "50";
			}	
		}
		//MainManager.Instance.Init();
	}
}
